package ooday02;

public class OverrideDemo {
    public static void main(String[] args) {
        Student zg =new Student("张光",16,"山东","南宁","学习","A");
        zg.sayHi();
        Teacher cz=new Teacher("曹泽",51,"北京",10000,"A");
        cz.sayHi();
        Doctor ls =new Doctor("李四",55,"曹县","主任医师","A");
        ls.sayHi();

    }
}
